import request from '../util/request'


// 获取验证码
export function getCaptchas(){
  return request({
    method: 'post',
    url: 'v1/captchas'
  })
}

// 注册/登录
export function loginByPwd(data){
  return request({
    method:'post',
    url:'v2/login',
    data
  })
}

// 退出
export function logout(){
  return request({
    method: 'get',
    url: 'v2/signout'
  })
}